package a.e.a;

import a.c.d;
import a.c.e;
import a.j.g;
import a.j.*;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class t
  extends r
{
  private g g;
  private Map h;
  private Map i;
  private d j;
  private s k;
  private r m;
  private tb n;
  private double o;
  private double q;
  private double r;
  private double s;
  private x t;
  private List u = new ArrayList();
  public static boolean v;
  
  public t(g paramg, Map paramMap1, Map paramMap2)
  {
    this.g = paramg;
    this.h = paramMap1;
    this.i = paramMap2;
    this.m = new r();
    this.k = new s();
    this.t = new x();
    a("graphics", this.k);
    a("LabelGraphics", this.t);
    a("edgeAnchor", this.m);
  }
  
  public void a()
  {
    super.a();
    this.n = null;
    this.j = null;
    this.o = (this.q = this.r = this.s = 0.0D);
    this.u.clear();
  }
  
  public void a(r paramr)
  {
    boolean bool = r.f;
    int i1 = r.e;
    if (!bool) {
      if (paramr == this.k)
      {
        if (!bool)
        {
          this.n = this.k.f();
          if (i1 == 0) {
            return;
          }
        }
      }
      else {
        if (bool) {
          break label113;
        }
      }
    }
    if (paramr == this.m)
    {
      this.o = this.m.e("xSource");
      this.q = this.m.e("ySource");
      this.r = this.m.e("xTarget");
      if (bool) {
        break label113;
      }
      this.s = this.m.e("yTarget");
      if (i1 == 0) {
        return;
      }
    }
    label113:
    if (paramr == this.t)
    {
      this.u.add(this.t.c());
      this.t.f();
    }
  }
  
  protected void f()
  {
    boolean bool = r.f;
    int i2 = r.e;
    if (!bool) {
      if (this.n == null) {
        return;
      }
    }
    String str = d("label");
    if (str.length() > 0) {
      this.n.a(str);
    }
    if (this.t != null)
    {
      int i1 = 0;
      do
      {
        if (i1 >= this.u.size()) {
          break;
        }
        Map localMap = (Map)this.u.get(i1);
        if (!bool)
        {
          if (!localMap.isEmpty())
          {
            if (!bool) {
              if (this.n.V() < i1 + 1) {
                this.n.a(this.n.X());
              }
            }
            ig localig = this.n.d(this.n.V() - 1);
            this.t.a(localMap);
            this.t.a(localig);
            if (bool) {
              continue;
            }
            if ("index_label".equals(localMap.get("type"))) {
              localig.a(Integer.toString(f("id")));
            }
          }
          i1++;
        }
      } while (i2 == 0);
    }
  }
  
  public void b()
  {
    boolean bool = r.f;
    e locale1 = (e)this.h.get(this.c.get("source"));
    e locale2 = (e)this.h.get(this.c.get("target"));
    if ((bool) || ((locale1 == null) || (locale2 == null))) {
      return;
    }
    d locald = this.g.a(locale1, locale2);
    this.j = locald;
    Object localObject = this.c.get("id");
    if (!bool)
    {
      if (this.n == null) {
        this.n = this.g.O().e();
      }
      this.g.a(locald, this.n);
    }
    if (!bool) {
      if (this.o == 0.0D)
      {
        if (bool) {
          break label227;
        }
        if (this.q == 0.0D) {
          break label216;
        }
      }
    }
    ld localld = this.g.w(locald.e());
    this.n.a(new zd(this.o * localld.c() / 2.0D, this.q * localld.d() / 2.0D));
    label216:
    if (!bool) {
      if (this.r == 0.0D)
      {
        label227:
        if (bool) {
          break label305;
        }
        if (this.s == 0.0D) {
          break label299;
        }
      }
    }
    localld = this.g.w(locald.f());
    this.n.b(new zd(this.r * localld.c() / 2.0D, this.s * localld.d() / 2.0D));
    label299:
    f();
    label305:
    if ((bool) || (localObject != null)) {
      this.i.put(localObject, locald);
    }
  }
  
  public Object c()
  {
    return this.j;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.a.t

 * JD-Core Version:    0.7.0.1

 */